import service from '@/utils/request'

// @Tags 健康圈
// @Summary 删除健康圈
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FdArticleAudio true "删除健康圈"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /circle/deleteCircle [delete]
export const deleteCircle = (data) => {
  return service({
    url: '/circle/deleteCircle',
    method: 'delete',
    data
  })
}

// @Tags 健康圈
// @Summary 删除评论
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FdArticleAudio true "删除评论"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /circle/deleteCircle [delete]
export const deleteComment = (data) => {
  return service({
    url: '/circle/deleteComment',
    method: 'delete',
    data
  })
}

// @Tags 健康圈
// @Summary 获取评论列表【管理端】
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.FdArticleAudio true "获取评论列表【管理端】"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /circle/getCommentsList [get]
export const getCommentsList = (params) => {
  return service({
    url: '/circle/getCommentsList',
    method: 'get',
    params
  })
}

// @Tags 健康圈
// @Summary 分页获取健康圈列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取健康圈列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /circle/getHealthCircleList [get]
export const getHealthCircleList = (params) => {
  return service({
    url: '/circle/getHealthCircleList',
    method: 'get',
    params
  })
}
